package com.tsd.jxc.fin.service;

import com.tsd.core.vo.PageBean;
import com.tsd.jxc.fin.entity.JxcFinanceAccount;
import com.tsd.jxc.fin.entity.JxcFinanceAccountExt;
import com.tsd.system.entity.SysUser;

import java.util.List;
import java.util.Map;

/**
 * 描述：JxcFinanceAccount服务实现层接口
 *
 * @author Hillpool
 * @date 2022/09/01 16:14:21
 */
public interface JxcFinanceAccountService {

    /**
     * 描述：根据id获取JxcFinanceAccount
     *
     * @param id
     */
    JxcFinanceAccount getJxcFinanceAccountById(Long id) throws Exception;

    /**
     * 描述：根据sid获取JxcFinanceAccount
     *
     * @param sid
     */
    JxcFinanceAccountExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据sid列表删除JxcFinanceAccount
     *
     * @param list
     */
    void deleteJxcFinanceAccounts(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新JxcFinanceAccount
     *
     * @param record
     * @param opUser
     */
    void saveJxcFinanceAccount(JxcFinanceAccount record, SysUser opUser) throws Exception;

    /**
     * 描述：根据params分页查询JxcFinanceAccount
     *
     * @param params
     * @param page
     */
    List<JxcFinanceAccountExt> findJxcFinanceAccounts(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询JxcFinanceAccount
     *
     * @param params
     */
    List<JxcFinanceAccountExt> findJxcFinanceAccounts(Map<String, Object> params) throws Exception;

    /**
     * 对往来单位初始化一个账户记录
     *
     * @param related_party_sid
     * @param opUser
     */
    void initData(String related_party_sid, SysUser opUser) throws Exception;
}